<?php
/**
 * System_Model_Resource
 *
 * @author mmxie
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: Resource.php 906 2011-10-20 02:38:33Z mmxie $
 */
class System_Model_Resource extends IG_Model
{

    protected $_data = array(
        'resource_id' => null,
        'employee' => null,
        'name' => null,
        'module' => null,
        'controller' => null,
        'action' => null,
        'param' => null,
        'atime' => null,
    );



    /**
     * @param int $value
     * @return System_Model_Resource
     */
    public function setResourceId($value)
    {
        $this->resource_id = (int) $value;
        return $this;
    }

    public function getResourceId()
    {
        return $this->resource_id;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setEmployee($value)
    {
        $this->employee =  $value;
        return $this;
    }

    public function getEmployee()
    {
        return $this->employee;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setName($value)
    {
        $this->name =  $value;
        return $this;
    }

    public function getName()
    {
        return $this->name;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setModule($value)
    {
        $this->module =  $value;
        return $this;
    }

    public function getModule()
    {
        return $this->module;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setController($value)
    {
        $this->controller =  $value;
        return $this;
    }

    public function getController()
    {
        return $this->controller;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setAction($value)
    {
        $this->action =  $value;
        return $this;
    }

    public function getAction()
    {
        return $this->action;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setParam($value)
    {
        $this->param =  $value;
        return $this;
    }

    public function getParam()
    {
        return $this->param;
    }

    /**
     * @param string $value
     * @return System_Model_Resource
     */
    public function setAtime($value)
    {
        $this->atime =  $value;
        return $this;
    }

    public function getAtime()
    {
        return $this->atime;
    }

    public function fetchKey()
    {
        return $this->getMapper()->fetchKey();
    }
}